package com.xiaodimall.backsys.pojo;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 商品表
 * @author CJJ
 * @TableName tb_goods_info
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("tb_goods_info")
public class GoodsInfo extends BasePojo{
    /**
     * 商品表主键id
     */
    @TableId(value = "goods_id",type = IdType.AUTO)
    private Long goodsId;

    /**
     * 商品名
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品简介
     */
    @TableField("goods_intro")
    private String goodsIntro;

    /**
     * 关联分类id
     */
    @TableField("goods_Category_id")
    private Long goodsCategoryId;

    /**
     * 商品主图
     */
    @TableField("goods_cover_img")
    private String goodsCoverImg;

    /**
     * 商品轮播图
     */
    @TableField("goods_carousel")
    private String goodsCarousel;

    /**
     * 商品详情
     */
    @TableField("goods_detail_content")
    private String goodsDetailContent;

    /**
     * 商品价格
     */
    @TableField("original_price")
    private Integer originalPrice;

    /**
     * 商品实际售价
     */
    @TableField("selling_price")
    private Integer sellingPrice;

    /**
     * 商品库存数量
     */
    @TableField("stock_num")
    private Integer stockNum;

    /**
     * 商品标签
     */
    @TableField("tag")
    private String tag;

    /**
     * 商品上架状态 0-下架 1-上架
     */
    @TableField("goods_sell_status")
    private Integer goodsSellStatus;


}